package com.jk.vehicle.mini.dao;

import com.jk.vehicle.mini.entity.UserBicycleLink;
import com.jk.vehicle.core.mapper.Mapper;
import com.jk.vehicle.mini.vo.UserBicycleLinkVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserBicycleLinkMapper extends Mapper<UserBicycleLink> {
    /**
     * 查询车辆分享关联信息
     * @param bicycleId 车辆ID
     * @return 结果
     */
    List<UserBicycleLinkVO> queryShareLinkData(@Param("bicycleId") Long bicycleId);

    /**
     * 根据用户id查询用户车辆关联列表
     * @param userId
     * @return
     */
    List<UserBicycleLink> queryUserBicycleLinkCommonCorpById(@Param("userId") Long userId);

    /**
     * 根据用户id分组查询用户车辆关联列表
     * @param userId
     * @return
     */
    List<UserBicycleLink> queryUserBicycleLinkCorpById(@Param("userId") Long userId);

}